package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"zfb/api/internal/config"
	"zfb/zfbrpc/zfbrpcclient"
)

type ServiceContext struct {
	Config config.Config
	ZfbRpc zfbrpcclient.Zfbrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		ZfbRpc: zfbrpcclient.NewZfbrpc(zrpc.MustNewClient(c.ZfbRpc)),
	}
}
